<?php

/*
 * 预报入库业务类
 */
class Application_Model_ingstoreproduct extends Application_Model_DomainObject{
    
    	protected $_id;//序号

	protected $_ingstoreid;//
	
	protected $_productid;//
        
        protected $_productname;//
        
        protected $_url;//
        
        protected $_image;//
        
        protected $_state;//
        
        private static function getDb(){
		return new Application_Model_DbTable_ingstoreproduct();
	}
        
        public static function getbyingstoreid($ingstoreid){
            $result=Application_Model_ingstoreproduct::getDb()->getbyingstoreid($ingstoreid);
            return $result;
        }
        
        public function getimageFile(){
            
            if($this->_image==null || $this->_image=='')
            {
                return '/../'.Application_Model_Product::DEFAULT_IMAGE;
            }
            else
            {
                return '/'.$this->_image;
            }        
        }
}
?>
